﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UIAStudio
{
    public class CSGenerator
    {
        private CSUsing _prefix;
        private string _nameSpace;
        private CSClass _class;

        public CSGenerator(CSUsing prefix, string nameSpace, CSClass cls)
        {
            _prefix = prefix;
            _nameSpace = nameSpace;
            _class = cls;
        }

        public override string ToString()
        {
            string prefixCode = _prefix.ToString();
            string nameSpaceCode = _nameSpace.ToString();
            string clsCode = _class.ToString();

            string csCode = String.Format("{0}\r\n\r\nnamespace {1}\r\n{\r\n{2}\r\n", prefixCode, nameSpaceCode, clsCode);
            return csCode;
        }
    }
}
